# config.py - 配置文件
"""
配置文件
"""

import os
from typing import Dict, List


# API配置
API_HOST = os.getenv('WZRY_API_HOST', '127.0.0.1')
API_PORT = int(os.getenv('WZRY_API_PORT', 8000))

# 认证配置
API_TOKENS = {
    "admin": os.getenv('WZRY_ADMIN_TOKEN', 'admin_token_change_me'),
    "user1": os.getenv('WZRY_USER1_TOKEN', 'user1_token_change_me'),
    "user2": os.getenv('WZRY_USER2_TOKEN', 'user2_token_change_me'),
}

# 设备配置
DEFAULT_DEVICES = [
    "emulator-5554",
    "emulator-5556", 
    "emulator-5558"
]

# 查询配置
DEFAULT_TIMEOUT = 30
MAX_CONCURRENT_QUERIES = 10

# 日志配置
LOG_LEVEL = "INFO"
LOG_FILE = "wzry_api.log"


# requirements.txt
"""
fastapi==0.104.1
uvicorn==0.24.0
uiautomator2==2.16.23
loguru==0.7.2
click==8.1.7
requests==2.31.0
pandas==2.1.3
pydantic==2.5.0
"""